/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * JFrameLogin.java
 *
 * Created on Dec 3, 2011, 9:58:11 PM
 */
package bugreportingsystem;

import Util.CommonQuery;
import Util.Employee;
import java.awt.Image;
import java.awt.event.KeyAdapter;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import java.net.URL;
import java.util.Vector;
import javax.swing.ImageIcon;
import javax.swing.JOptionPane;
import java.security.*;
import java.util.Locale;
import java.util.ResourceBundle;
import javax.crypto.*;
import javax.swing.DefaultComboBoxModel;
import sun.misc.*;

/**
 *
 * @author PhucTakua
 */
public class JFrameLogin extends javax.swing.JFrame {

    /** Creates new form JFrameLogin */
    public static int idemployee;
    public static String nameemployee;
    public static int iddepartment;
    public static String EncryptPass;
    public static String username;
    public static String language;
    public static String country;
    public static int indexlanguage = JFrameMainFram.index;

    public JFrameLogin() {
        initComponents();
        URL url = getClass().getResource("resources/manager.png");
        Image icon = new ImageIcon(url).getImage();
        this.setIconImage(icon);


        jComboBoxLanguage.setSelectedIndex(indexlanguage);
        Intermediate.jlogin = this;
        this.jPasswordFieldPassword.addKeyListener(new KeyAdapter() {

            public void keyPressed(KeyEvent e) {
                int key = e.getKeyCode();
                if (key == KeyEvent.VK_ENTER) {
                    login();
                }

            }
        });
        //language="en";
        //country="US";

    }

    private void MyTranslate(String language, String country) {
        Locale lc = new Locale(language, country);
        ResourceBundle rb = ResourceBundle.getBundle("bugreportingsystem/resources/JFrameLogin", lc);
        this.Username1.setText(rb.getString("Username1.text"));
        this.bugreportsystem1.setText(rb.getString("bugreportsystem1.text"));
        this.Language.setText(rb.getString("Language.text"));
        this.jButtonExit.setText(rb.getString("jButtonExit.text"));
        this.jButtonLogin.setText(rb.getString("jButtonLogin.text"));
        this.Password1.setText(rb.getString("Password1.text"));
    }

    private String DecryptionPassword() {
        String password = "";
        CommonQuery com = new CommonQuery();
        Vector<Employee> list = Employee.ListIDONUsername(username);
        for (Employee e : list) {
            //System.out.println(e.getIdemployee());
            if (e.getIdemployee() == idemployee) {
                EncryptPass = e.getPassword();
                //System.out.println(EncryptPass);
                password = com.DEncrypt(EncryptPass, idemployee);
                //System.out.println(password);
                e.setIdemployee(idemployee);
                e.setPassword(password);
                e.ChangePassword();
                break;
            }
        }

        return password;
    }

    private void EncryptionPassword() {
        Vector<Employee> listid = Employee.ListIDONUsername(username);
        for (Employee e : listid) {
            if (e.getIdemployee() == idemployee) {
                String pass = e.getPassword();
                CommonQuery com = new CommonQuery();
                pass = com.Encrypt(pass, idemployee);
                e.setPassword(pass);
                e.ChangePassword();
                break;
            }
        }
    }

    private int CheckUsername(String name) {
        try {
            Vector<Employee> list = Employee.ListIDONUsername(name);
            if (list == null) {
                idemployee = -1;
            } else {
                for (Employee e : list) {
                    if (e.getUsername().equals(username)) {
                        idemployee = e.getIdemployee();
                        break;
                    } else {
                        idemployee = -1;
                    }
                }
            }
        } catch (Exception e) {
            idemployee = -1;
        }
        //System.out.println(idemployee);
        return idemployee;
    }

    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jPanel2 = new javax.swing.JPanel();
        jPanel3 = new javax.swing.JPanel();
        jPanel4 = new javax.swing.JPanel();
        jPanel5 = new javax.swing.JPanel();
        jPanel8 = new javax.swing.JPanel();
        jPanel11 = new javax.swing.JPanel();
        jPanel12 = new javax.swing.JPanel();
        Nha1 = new javax.swing.JLabel();
        jPanel13 = new javax.swing.JPanel();
        bugreportsystem1 = new javax.swing.JLabel();
        jPanel9 = new javax.swing.JPanel();
        jPanel18 = new javax.swing.JPanel();
        jPanel19 = new javax.swing.JPanel();
        jPanel20 = new javax.swing.JPanel();
        jButtonLogin = new javax.swing.JButton();
        jButtonExit = new javax.swing.JButton();
        jPanel10 = new javax.swing.JPanel();
        jPanel14 = new javax.swing.JPanel();
        jPanel15 = new javax.swing.JPanel();
        jPanel16 = new javax.swing.JPanel();
        Username1 = new javax.swing.JLabel();
        Password1 = new javax.swing.JLabel();
        Language = new javax.swing.JLabel();
        jPanel17 = new javax.swing.JPanel();
        jTextFieldUsername = new javax.swing.JTextField();
        jPasswordFieldPassword = new javax.swing.JPasswordField();
        jComboBoxLanguage = new javax.swing.JComboBox();
        jPanel6 = new javax.swing.JPanel();
        jPanel7 = new javax.swing.JPanel();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(bugreportingsystem.BugReportingSystemApp.class).getContext().getResourceMap(JFrameLogin.class);
        setTitle(resourceMap.getString("Form.title")); // NOI18N
        setMaximizedBounds(new java.awt.Rectangle(0, 0, 0, 0));
        setMinimumSize(new java.awt.Dimension(320, 180));
        setName("Form"); // NOI18N
        setResizable(false);

        jPanel2.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        jPanel2.setMinimumSize(new java.awt.Dimension(480, 324));
        jPanel2.setName("jPanel2"); // NOI18N
        jPanel2.setPreferredSize(new java.awt.Dimension(480, 270));
        jPanel2.setLayout(new java.awt.BorderLayout());

        jPanel3.setName("jPanel3"); // NOI18N
        jPanel3.setPreferredSize(new java.awt.Dimension(20, 59));

        javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
        jPanel3.setLayout(jPanel3Layout);
        jPanel3Layout.setHorizontalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 20, Short.MAX_VALUE)
        );
        jPanel3Layout.setVerticalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 265, Short.MAX_VALUE)
        );

        jPanel2.add(jPanel3, java.awt.BorderLayout.LINE_START);

        jPanel4.setName("jPanel4"); // NOI18N
        jPanel4.setPreferredSize(new java.awt.Dimension(428, 20));

        javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);
        jPanel4.setLayout(jPanel4Layout);
        jPanel4Layout.setHorizontalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 476, Short.MAX_VALUE)
        );
        jPanel4Layout.setVerticalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 20, Short.MAX_VALUE)
        );

        jPanel2.add(jPanel4, java.awt.BorderLayout.PAGE_START);

        jPanel5.setName("jPanel5"); // NOI18N
        jPanel5.setLayout(new java.awt.BorderLayout(0, 10));

        jPanel8.setName("jPanel8"); // NOI18N
        jPanel8.setPreferredSize(new java.awt.Dimension(388, 50));
        jPanel8.setLayout(new java.awt.BorderLayout());

        jPanel11.setName("jPanel11"); // NOI18N
        jPanel11.setPreferredSize(new java.awt.Dimension(145, 50));
        jPanel11.setLayout(new java.awt.BorderLayout());
        jPanel8.add(jPanel11, java.awt.BorderLayout.LINE_START);

        jPanel12.setName("jPanel12"); // NOI18N
        jPanel12.setLayout(new java.awt.BorderLayout());

        Nha1.setIcon(resourceMap.getIcon("Nha1.icon")); // NOI18N
        Nha1.setName("Nha1"); // NOI18N
        Nha1.setPreferredSize(new java.awt.Dimension(60, 36));
        jPanel12.add(Nha1, java.awt.BorderLayout.CENTER);

        jPanel8.add(jPanel12, java.awt.BorderLayout.LINE_END);

        jPanel13.setName("jPanel13"); // NOI18N
        jPanel13.setLayout(new java.awt.BorderLayout());

        bugreportsystem1.setFont(resourceMap.getFont("bugreportsystem1.font")); // NOI18N
        bugreportsystem1.setForeground(resourceMap.getColor("bugreportsystem1.foreground")); // NOI18N
        bugreportsystem1.setText(resourceMap.getString("bugreportsystem1.text")); // NOI18N
        bugreportsystem1.setName("bugreportsystem1"); // NOI18N
        jPanel13.add(bugreportsystem1, java.awt.BorderLayout.CENTER);

        jPanel8.add(jPanel13, java.awt.BorderLayout.CENTER);

        jPanel5.add(jPanel8, java.awt.BorderLayout.PAGE_START);

        jPanel9.setName("jPanel9"); // NOI18N
        jPanel9.setPreferredSize(new java.awt.Dimension(388, 30));
        jPanel9.setLayout(new java.awt.BorderLayout());

        jPanel18.setName("jPanel18"); // NOI18N
        jPanel18.setPreferredSize(new java.awt.Dimension(20, 50));

        javax.swing.GroupLayout jPanel18Layout = new javax.swing.GroupLayout(jPanel18);
        jPanel18.setLayout(jPanel18Layout);
        jPanel18Layout.setHorizontalGroup(
            jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 20, Short.MAX_VALUE)
        );
        jPanel18Layout.setVerticalGroup(
            jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 30, Short.MAX_VALUE)
        );

        jPanel9.add(jPanel18, java.awt.BorderLayout.LINE_END);

        jPanel19.setName("jPanel19"); // NOI18N
        jPanel19.setPreferredSize(new java.awt.Dimension(143, 20));

        javax.swing.GroupLayout jPanel19Layout = new javax.swing.GroupLayout(jPanel19);
        jPanel19.setLayout(jPanel19Layout);
        jPanel19Layout.setHorizontalGroup(
            jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 143, Short.MAX_VALUE)
        );
        jPanel19Layout.setVerticalGroup(
            jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 30, Short.MAX_VALUE)
        );

        jPanel9.add(jPanel19, java.awt.BorderLayout.LINE_START);

        jPanel20.setName("jPanel20"); // NOI18N
        jPanel20.setLayout(new java.awt.GridLayout(1, 2, 5, 0));

        jButtonLogin.setFont(resourceMap.getFont("jButtonLogin.font")); // NOI18N
        jButtonLogin.setForeground(resourceMap.getColor("jButtonLogin.foreground")); // NOI18N
        jButtonLogin.setIcon(resourceMap.getIcon("jButtonLogin.icon")); // NOI18N
        jButtonLogin.setText(resourceMap.getString("jButtonLogin.text")); // NOI18N
        jButtonLogin.setName("jButtonLogin"); // NOI18N
        jButtonLogin.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonLoginActionPerformed(evt);
            }
        });
        jPanel20.add(jButtonLogin);

        jButtonExit.setFont(resourceMap.getFont("jButtonExit.font")); // NOI18N
        jButtonExit.setForeground(resourceMap.getColor("jButtonExit.foreground")); // NOI18N
        jButtonExit.setIcon(resourceMap.getIcon("jButtonExit.icon")); // NOI18N
        jButtonExit.setText(resourceMap.getString("jButtonExit.text")); // NOI18N
        jButtonExit.setName("jButtonExit"); // NOI18N
        jButtonExit.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonExitActionPerformed(evt);
            }
        });
        jPanel20.add(jButtonExit);

        jPanel9.add(jPanel20, java.awt.BorderLayout.CENTER);

        jPanel5.add(jPanel9, java.awt.BorderLayout.PAGE_END);

        jPanel10.setName("jPanel10"); // NOI18N
        jPanel10.setLayout(new java.awt.BorderLayout());

        jPanel14.setName("jPanel14"); // NOI18N
        jPanel14.setPreferredSize(new java.awt.Dimension(20, 119));

        javax.swing.GroupLayout jPanel14Layout = new javax.swing.GroupLayout(jPanel14);
        jPanel14.setLayout(jPanel14Layout);
        jPanel14Layout.setHorizontalGroup(
            jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 20, Short.MAX_VALUE)
        );
        jPanel14Layout.setVerticalGroup(
            jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 165, Short.MAX_VALUE)
        );

        jPanel10.add(jPanel14, java.awt.BorderLayout.LINE_END);

        jPanel15.setName("jPanel15"); // NOI18N
        jPanel15.setLayout(new java.awt.BorderLayout(15, 0));

        jPanel16.setName("jPanel16"); // NOI18N
        jPanel16.setPreferredSize(new java.awt.Dimension(130, 92));
        jPanel16.setLayout(new java.awt.GridLayout(3, 1, 0, 10));

        Username1.setFont(resourceMap.getFont("Username1.font")); // NOI18N
        Username1.setForeground(resourceMap.getColor("Username1.foreground")); // NOI18N
        Username1.setIcon(resourceMap.getIcon("Username1.icon")); // NOI18N
        Username1.setText(resourceMap.getString("Username1.text")); // NOI18N
        Username1.setName("Username1"); // NOI18N
        jPanel16.add(Username1);

        Password1.setBackground(resourceMap.getColor("Password1.background")); // NOI18N
        Password1.setFont(resourceMap.getFont("Password1.font")); // NOI18N
        Password1.setForeground(resourceMap.getColor("Password1.foreground")); // NOI18N
        Password1.setIcon(resourceMap.getIcon("Password1.icon")); // NOI18N
        Password1.setText(resourceMap.getString("Password1.text")); // NOI18N
        Password1.setName("Password1"); // NOI18N
        jPanel16.add(Password1);

        Language.setBackground(resourceMap.getColor("Language.background")); // NOI18N
        Language.setFont(resourceMap.getFont("Language.font")); // NOI18N
        Language.setForeground(resourceMap.getColor("Language.foreground")); // NOI18N
        Language.setIcon(resourceMap.getIcon("Language.icon")); // NOI18N
        Language.setText(resourceMap.getString("Language.text")); // NOI18N
        Language.setName("Language"); // NOI18N
        jPanel16.add(Language);

        jPanel15.add(jPanel16, java.awt.BorderLayout.LINE_START);

        jPanel17.setName("jPanel17"); // NOI18N
        jPanel17.setLayout(new java.awt.GridLayout(3, 1, 0, 10));

        jTextFieldUsername.setName("jTextFieldUsername"); // NOI18N
        jPanel17.add(jTextFieldUsername);

        jPasswordFieldPassword.setName("jPasswordFieldPassword"); // NOI18N
        jPasswordFieldPassword.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                jPasswordFieldPasswordKeyPressed(evt);
            }
        });
        jPanel17.add(jPasswordFieldPassword);

        jComboBoxLanguage.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "English", "VietNam" }));
        jComboBoxLanguage.setName("jComboBoxLanguage"); // NOI18N
        jComboBoxLanguage.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jComboBoxLanguageActionPerformed(evt);
            }
        });
        jPanel17.add(jComboBoxLanguage);

        jPanel15.add(jPanel17, java.awt.BorderLayout.CENTER);

        jPanel10.add(jPanel15, java.awt.BorderLayout.CENTER);

        jPanel5.add(jPanel10, java.awt.BorderLayout.CENTER);

        jPanel2.add(jPanel5, java.awt.BorderLayout.CENTER);

        jPanel6.setName("jPanel6"); // NOI18N
        jPanel6.setPreferredSize(new java.awt.Dimension(428, 35));

        javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6);
        jPanel6.setLayout(jPanel6Layout);
        jPanel6Layout.setHorizontalGroup(
            jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 476, Short.MAX_VALUE)
        );
        jPanel6Layout.setVerticalGroup(
            jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 35, Short.MAX_VALUE)
        );

        jPanel2.add(jPanel6, java.awt.BorderLayout.PAGE_END);

        jPanel7.setMinimumSize(new java.awt.Dimension(20, 0));
        jPanel7.setName("jPanel7"); // NOI18N
        jPanel7.setPreferredSize(new java.awt.Dimension(20, 219));

        javax.swing.GroupLayout jPanel7Layout = new javax.swing.GroupLayout(jPanel7);
        jPanel7.setLayout(jPanel7Layout);
        jPanel7Layout.setHorizontalGroup(
            jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 20, Short.MAX_VALUE)
        );
        jPanel7Layout.setVerticalGroup(
            jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 265, Short.MAX_VALUE)
        );

        jPanel2.add(jPanel7, java.awt.BorderLayout.LINE_END);

        getContentPane().add(jPanel2, java.awt.BorderLayout.CENTER);

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void login() {
        Employee ep = new Employee();
        username = this.jTextFieldUsername.getText();
        String pass = convertPassword(this.jPasswordFieldPassword.getPassword());

        String privilege = "";

        if (!CommonQuery.CheckString(username)) {
            Locale lc = new Locale(language, country);
            ResourceBundle rb = ResourceBundle.getBundle("bugreportingsystem/resources/JFrameLogin", lc);
            JOptionPane.showMessageDialog(null, rb.getString("InputUserName"));

        } else if (CheckUsername(username) < 0) {
            Locale lc = new Locale(language, country);
            ResourceBundle rb = ResourceBundle.getBundle("bugreportingsystem/resources/JFrameLogin", lc);
            JOptionPane.showMessageDialog(null, rb.getString("Usernamenotexist"));
        } else {
            DecryptionPassword();
            if (ep.Login(username, pass)) {
                //JOptionPane.showMessageDialog(null,"Login Success");
                if (ep.Iddepartment(username, pass) == 1) {
                    privilege = "admin";
                } else if (ep.Iddepartment(username, pass) == 2) {
                    privilege = "ManageCallBackEnd";
                } else if (ep.Iddepartment(username, pass) == 3) {
                    privilege = "ManageMailBackEnd";
                } else if (ep.Iddepartment(username, pass) == 4) {
                    privilege = "AccountManagement";
                } else if (ep.Iddepartment(username, pass) == 5) {
                    privilege = "DispatchAndOrderManagement";
                } else if (ep.Iddepartment(username, pass) == 6) {
                    privilege = "FrontEnd";
                }
                iddepartment = ep.Iddepartment(username, pass);
                Intermediate.jMainFram = new JFrameMainFram();
                Intermediate.jMainFram.Privilege(privilege);
                Intermediate.jMainFram.setVisible(true);

                idemployee = ep.getidemploy(username, pass);
                nameemployee = ep.getnameemploy(username, pass);
                Intermediate.jMainFram.GanUsername(nameemployee);
                EncryptionPassword();
                indexlanguage = this.jComboBoxLanguage.getSelectedIndex();
                this.dispose();
            } else {
                indexlanguage = this.jComboBoxLanguage.getSelectedIndex();
                EncryptionPassword();
                Locale lc = new Locale(language, country);
                ResourceBundle rb = ResourceBundle.getBundle("bugreportingsystem/resources/JFrameLogin", lc);
                JOptionPane.showMessageDialog(null, rb.getString("WrongPass"));
            }
        }
    }

    private void jButtonLoginActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonLoginActionPerformed
        // TODO add your handling code here:

        login();


}//GEN-LAST:event_jButtonLoginActionPerformed

    private void jButtonExitActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonExitActionPerformed
        // TODO add your handling code here:
        this.dispose();
}//GEN-LAST:event_jButtonExitActionPerformed

    private void jComboBoxLanguageActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jComboBoxLanguageActionPerformed
        // TODO add your handling code here:
        indexlanguage = jComboBoxLanguage.getSelectedIndex();

        if (indexlanguage == 1) {
            language = "vi";
            country = "VN";
            MyTranslate(language, country);
        } else if (indexlanguage == 0) {
            language = "en";
            country = "US";
            MyTranslate(language, country);
        }


    }//GEN-LAST:event_jComboBoxLanguageActionPerformed

    private void jPasswordFieldPasswordKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jPasswordFieldPasswordKeyPressed
        // TODO add your handling code here:
    }//GEN-LAST:event_jPasswordFieldPasswordKeyPressed

    public static String convertPassword(char[] cPassword) {
        // Declare variables
        String strRet = new String("");

        // Go through each character
        for (int i = 0; i < cPassword.length; i++) {
            strRet += cPassword[i];
        }

        return strRet;
    }

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                new JFrameLogin().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel Language;
    private javax.swing.JLabel Nha1;
    private javax.swing.JLabel Password1;
    private javax.swing.JLabel Username1;
    private javax.swing.JLabel bugreportsystem1;
    private javax.swing.JButton jButtonExit;
    private javax.swing.JButton jButtonLogin;
    private javax.swing.JComboBox jComboBoxLanguage;
    private javax.swing.JPanel jPanel10;
    private javax.swing.JPanel jPanel11;
    private javax.swing.JPanel jPanel12;
    private javax.swing.JPanel jPanel13;
    private javax.swing.JPanel jPanel14;
    private javax.swing.JPanel jPanel15;
    private javax.swing.JPanel jPanel16;
    private javax.swing.JPanel jPanel17;
    private javax.swing.JPanel jPanel18;
    private javax.swing.JPanel jPanel19;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel20;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JPanel jPanel4;
    private javax.swing.JPanel jPanel5;
    private javax.swing.JPanel jPanel6;
    private javax.swing.JPanel jPanel7;
    private javax.swing.JPanel jPanel8;
    private javax.swing.JPanel jPanel9;
    private javax.swing.JPasswordField jPasswordFieldPassword;
    private javax.swing.JTextField jTextFieldUsername;
    // End of variables declaration//GEN-END:variables
}
